home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / libsrc~1.z / libsrc~1 / strlen.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-28  |  197 b   |  17 lines

  1. #include "lib.h"
  2.  
  3. /*
  4.  * strlen - length of string (not including NUL)
  5.  */
  6. _SIZET
  7. strlen(s)
  8. _CONST char *s;
  9. {
  10.     register _SIZET count;
  11.  
  12.     count = 0;
  13.     while (*s++ != '\0')
  14.         count++;
  15.     return(count);
  16. }
  17.